# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=khealthcertificate
pkgver=22.06
pkgrel=0
pkgdesc="Handling of digital vaccination, test and recovery certificates"
url="https://invent.kde.org/pim/khealthcertificate"
# armhf blocked by extra-cmake-modules
arch="all !armhf"
license="LGPL-2.0-or-later"
depends_dev="
	karchive-dev
	kcodecs-dev
	openssl-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	samurai
	zlib-dev
	"
makedepends="$depends_dev
	extra-cmake-modules
	"
source="https://download.kde.org/stable/plasma-mobile/$pkgver/khealthcertificate-$pkgver.tar.xz"
subpackages="$pkgname-dev"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
7a25d4ff26c8c109405e7f25aa661781c9c40b4bcc61ab82bcefa429958e1f0725994b3daf6763ec432c0cb8aabda6d4568bbaf8a156f162172b9a304350e68d  khealthcertificate-22.06.tar.xz
"
